<template>
<div>
  <div id="test" @="aaa">aaaa</div>
</div>
</template>

<script>
  //单纯的js
  import $ from 'jquery'
  function aa() {
    alert('这是aa')
  }
  //vue中的js
    export default {
      name: "jquerytest",
      methods:{
         aaa(){
             alert('单机')
             aa()
         }
      },
      beforeCreate() {
        aa()
      }
    }
</script>

<style scoped>

</style>
